﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program10
{
    /// <summary>
    /// 定义员工类
    /// </summary>
    public class Person
    {
        //唯一标识
        //Guid是一个32位的字符串（不会重复）
        public Guid ID { get; set; }
        //工号
        public string EmployeeNo { get; set; }
        //姓
        public string FirstName { get; set; }
        //名
        public string LastName { get; set; }
        //全名
        public string FullName => $"{FirstName}{LastName}";
        //性别
        public bool Sex { get; set; } = true;
        //生日
        public DateTime BirthDay { get; set; } = DateTime.Today;
        //手机号
        public string Phone { get; set; }
        public Person()
        {
            //初始化对象时生成新的唯一标识
            ID = Guid.NewGuid();
        }
    }
}
